package cn.kgc.controller;

import cn.kgc.entity.Dept;
import cn.kgc.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/3/30
 * @Description:
 */
@RestController
@RequestMapping("dept")
public class DeptController {

    @Autowired
    private DeptService deptService;

    @RequestMapping("list")
    public List<Dept> getList(){
        return deptService.list();
    }


}
